<template>
  <div>


    <el-table
      ref="multipleTable"
      :data="resourcelist3"
      style="width: 100%"
      border>

      <el-table-column
        fixed
        prop="id"
        label="编号"
        align="center"
        width="155">
      </el-table-column>

      <el-table-column
        prop="wenjian"
        label="附件文件"
        align="center"
        width="155">
        <template slot-scope="scope">
          <img v-if="scope.row.wenjian!=null" :src="'/api/resource/download/'+scope.row.wenjian" width="70px" height="70px">
        </template>
      </el-table-column>
      <el-table-column
        prop="resourceName"
        label="数据资产名称"
        align="center"
        width="155">
      </el-table-column>

      <el-table-column
        prop="miao"
        label="数据资产包描述"
        align="center"
        width="300">
      </el-table-column>
      <el-table-column
        prop="status"
        label="数据资产标签"
        align="center"
        width="100">
        <template slot-scope="scope">
        {{scope.row.status | statusFit}}
        </template>
      </el-table-column>

<!--      <el-table-column-->
<!--        fixed="right"-->
<!--        label="操作"-->
<!--        align="center"-->
<!--        width="300">-->
<!--        <template slot-scope="scope">-->
<!--&lt;!&ndash;          <el-button type="primary" v-if="scope.row.status=='5'?!isShow:isShow" @click="get(scope.row.id)">编辑</el-button>&ndash;&gt;-->
<!--&lt;!&ndash;          <el-button type="primary" v-if="scope.row.status=='5'?!isShow:isShow" @click="deleteResource(scope.row)">删除</el-button>&ndash;&gt;-->
<!--&lt;!&ndash;          <el-button type="success" v-if="scope.row.status=='5'?!isShow:isShow" @click="dialogFormVisible222=true">推送</el-button>&ndash;&gt;-->
<!--        </template>-->
<!--      </el-table-column>-->
    </el-table>





  </div>
</template>

<script>
  export default {
    name: 'UserList',
    data(){
      return{

        dialogFormVisible222:false,
        userlist:[],
        dialogFormVisible:false,
        isShow:true,


        multipleSelection:[],
        names:[],
        user:{},

        resourcelist3:[],
        searchForm:{},

      }
    },
    methods: {

      handleSelectionChange(val) {
        this.multipleSelection = val;
      },
      toggleSelection(rows) {
        if (rows) {
          rows.forEach(row => {
            this.$refs.multipleTable.toggleRowSelection(row);
          });
        } else {
          this.$refs.multipleTable.clearSelection();
        }
      },



      searchlist: function () {//用户列表
        // this.id = sessionStorage.getItem("uid");
        this.$http.post("/resource/listStatus3",{}).then((res) => {
          this.resourcelist3 = res.data.result;

        });
      },



    },
    mounted () {
      this.searchlist();
      // this.auth.token = sessionStorage.getItem("token");
    },
    filters:{
      statusFit:function(val){
        if(val==3){
          return "已发布";
        }

        return val;
      }
    }
  }
</script>

<style scoped>
  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
</style>
